﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace AbpCompanyName.AbpProjectName.Migrations;

public partial class Upgrade_ABP_380 : Migration
{
    protected override void Up(MigrationBuilder migrationBuilder)
    {
        migrationBuilder.AlterColumn<string>(
            name: "UserName",
            table: "AbpUsers",
            maxLength: 256,
            nullable: false,
            oldClrType: typeof(string),
            oldMaxLength: 32);

        migrationBuilder.AlterColumn<string>(
            name: "NormalizedUserName",
            table: "AbpUsers",
            maxLength: 256,
            nullable: false,
            oldClrType: typeof(string),
            oldMaxLength: 32);

        migrationBuilder.AlterColumn<string>(
            name: "UserName",
            table: "AbpUserAccounts",
            maxLength: 256,
            nullable: true,
            oldClrType: typeof(string),
            oldMaxLength: 32,
            oldNullable: true);
    }

    protected override void Down(MigrationBuilder migrationBuilder)
    {
        migrationBuilder.AlterColumn<string>(
            name: "UserName",
            table: "AbpUsers",
            maxLength: 32,
            nullable: false,
            oldClrType: typeof(string),
            oldMaxLength: 256);

        migrationBuilder.AlterColumn<string>(
            name: "NormalizedUserName",
            table: "AbpUsers",
            maxLength: 32,
            nullable: false,
            oldClrType: typeof(string),
            oldMaxLength: 256);

        migrationBuilder.AlterColumn<string>(
            name: "UserName",
            table: "AbpUserAccounts",
            maxLength: 32,
            nullable: true,
            oldClrType: typeof(string),
            oldMaxLength: 256,
            oldNullable: true);
    }
}
